//
//  YXTableSectionHeaderView.h
//  MockProject
//
//  Created by FanYu on 23/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SectionHeaderType) {
    YXDownloadingSectionHeader,
    YXDownloadedSectionHeader,
};


@protocol YXTableSectionHeaderViewDelegate <NSObject>
- (void)headerButtonTapped:(UIButton *)sender;
@end



@interface YXTableSectionHeaderView : UITableViewHeaderFooterView//UIView

@property (nonatomic, strong) UIButton *actionButton;
@property (nonatomic, strong) UILabel *infoLable;
@property (nonatomic, weak) id<YXTableSectionHeaderViewDelegate> delegate;

- (void)updateTaskAmount:(SectionHeaderType)type taskAmount:(NSInteger)amount;
- (void)setSectionHeaderType:(SectionHeaderType)type isDownloadingAll:(BOOL)isDownloadingAl;
- (void)updateDownloadingButton;

@end
